package belajarzk.database.dao;

import org.hibernate.Session;

import belajarzk.database.hibernate.HibernateUtil;


/**
 * Created by IntelliJ IDEA. User: Fauzi Date: Nov 20, 2008 Time: 12:43:24 PM To
 * change this template use File | Settings | File Templates.
 */
public class HibernateDaoFactory extends DaoFactory {

	/**
	 * @return kembaliannya
	 */
	public Session getCurrentSession() {
		return HibernateUtil.currentSession();
	}

	@Override
	public MpropinsiDao getMpropinsiDao() {
		return new MpropinsiDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public MmenuDao getMmenuDao() {
		return new MmenuDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public TbmuserDao getTbmuserDao() {
		return new TbmuserDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public MkabupatenDao getMkabupatenDao() {
		// TODO Auto-generated method stub
		return new MkabupatenDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public MnegaraDao getMnegaraDao() {
		// TODO Auto-generated method stub
		return new MnegaraDaoImpl().setSession(getCurrentSession());
	}

}
